package com.kasax.imageloader;

import android.os.Bundle;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

import com.kasax.imgloader.v1.DisplayImageOptions;
import com.kasax.imgloader.v1.ImgLoader;

public class ImageLoaderV1TestActivity extends AppCompatActivity {

    private ImageView imageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_image_loader_v1_test);


        imageView = findViewById(R.id.imageview);

        DisplayImageOptions options = new DisplayImageOptions.Builder().centerCrop().build();
        // 先不考虑圆角
        ImgLoader.getInstance()
                .displayImage(Constants.IMG_LIST[0], imageView, options);
    }
}